package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PingtaitongzhiMapper;
import com.ruoyi.system.domain.Pingtaitongzhi;
import com.ruoyi.system.service.IPingtaitongzhiService;

/**
 * 平台通知Service业务层处理
 * 
 * @author cjq
 * @date 2024-08-10
 */
@Service
public class PingtaitongzhiServiceImpl implements IPingtaitongzhiService 
{
    @Autowired
    private PingtaitongzhiMapper pingtaitongzhiMapper;

    /**
     * 查询平台通知
     * 
     * @param pttzId 平台通知主键
     * @return 平台通知
     */
    @Override
    public Pingtaitongzhi selectPingtaitongzhiByPttzId(Long pttzId)
    {
        return pingtaitongzhiMapper.selectPingtaitongzhiByPttzId(pttzId);
    }

    /**
     * 查询平台通知列表
     * 
     * @param pingtaitongzhi 平台通知
     * @return 平台通知
     */
    @Override
    public List<Pingtaitongzhi> selectPingtaitongzhiList(Pingtaitongzhi pingtaitongzhi)
    {
        return pingtaitongzhiMapper.selectPingtaitongzhiList(pingtaitongzhi);
    }

    /**
     * 新增平台通知
     * 
     * @param pingtaitongzhi 平台通知
     * @return 结果
     */
    @Override
    public int insertPingtaitongzhi(Pingtaitongzhi pingtaitongzhi)
    {
        return pingtaitongzhiMapper.insertPingtaitongzhi(pingtaitongzhi);
    }

    /**
     * 修改平台通知
     * 
     * @param pingtaitongzhi 平台通知
     * @return 结果
     */
    @Override
    public int updatePingtaitongzhi(Pingtaitongzhi pingtaitongzhi)
    {
        return pingtaitongzhiMapper.updatePingtaitongzhi(pingtaitongzhi);
    }

    /**
     * 批量删除平台通知
     * 
     * @param pttzIds 需要删除的平台通知主键
     * @return 结果
     */
    @Override
    public int deletePingtaitongzhiByPttzIds(Long[] pttzIds)
    {
        return pingtaitongzhiMapper.deletePingtaitongzhiByPttzIds(pttzIds);
    }

    /**
     * 删除平台通知信息
     * 
     * @param pttzId 平台通知主键
     * @return 结果
     */
    @Override
    public int deletePingtaitongzhiByPttzId(Long pttzId)
    {
        return pingtaitongzhiMapper.deletePingtaitongzhiByPttzId(pttzId);
    }
}
